#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
	int num = 0;
	for (num = 1; num <= 100; num++)
	{
		if (num % 3 == 0)
			printf("%d ", num);
	}
	return 0;
}